import service from '@/utils/request'

export const divingslide = () => {
  return service({
    url: '/diving/divingGetSlide',
    method: 'get'
  })
}

export const divingDelSlide = (params) => {
  return service({
    url: '/diving/divingDeleteSlide',
    method: 'delete',
    params
  })
}

export const divingSlideDetail = (params) => {
  return service({
    url: '/diving/divingGetidSlide',
    method: 'get',
    params
  })
}

export const divingUpdateSlide = (data) => {
  return service({
    url: '/diving/divingUpdateSlide',
    method: 'put',
    data
  })
}

export const divingCreateSlide = (data) => {
  return service({
    url: '/diving/divingCreateSlide',
    method: 'post',
    data
  })
}
